
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<jsp:include page="/WEB-INF/jspf/header.jsp">
    <jsp:param name="title" value="New Account" />
</jsp:include>

<f:view>
        <h:form>
    <%@include file="/WEB-INF/jspf/menu_customer.jspf" %>


        <h1>New Account</h1>
        <h:panelGrid columns="2">
            <h:outputText value="Currency:"/>
            <h:selectOneMenu id="currency" required="true" value="#{account.currency}">
                <f:selectItems  value="#{account.currencyChoices}" />
                <f:converter converterId="CurrencyConverter" />
            </h:selectOneMenu>
            <h:message infoClass="info" errorClass="error" for="currency"/>

        </h:panelGrid>
        <h:commandButton action="#{account.create}" value="Add">
        </h:commandButton>
    </h:form>
    </body>
    </html>
</f:view>
